<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
    integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  <style>
    td {
      text-align: center;
    }

    td img {
      width: 100px;
      height: 100px;
    }

    th {
      text-align: center;
    }
  </style>
</head>


<body>
  <div class="container">
    <nav class="navbar navbar-default navbar-inverse">
      <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
            data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">全能网后台管理系统</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
          <ul class="nav navbar-nav">
            <li><a href="./index.html">用户管理<span class="sr-only">(current)</span></a></li>
            <li class="active"><a href="./product.html">商品管理</a></li>
            <li><a href="#">地址管理</a></li>
            <li><a href="./category.html">分类管理</a></li>
            <li><a href="#">售后管理</a></li>
          </ul>
          <form class="navbar-form navbar-left">
            <div class="form-group">
              <input type="text" class="form-control" placeholder="Search" id="searchText">
            </div>
            <button type="submit" class="btn btn-default" id="searchBtn">搜索</button>
          </form>
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">Link</a></li>
          </ul>
        </div><!-- /.navbar-collapse -->
      </div><!-- /.container-fluid -->
    </nav>
    <!-- 模态框开始------------------------------------------------ -->
    <div class="modal fade" tabindex="-1" id="mymodal" role="dialog" data-toggle="modal">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="mytitle">添加商品</h4>
          </div>

          <div class="modal-body">
            <form>
              <div class="form-group">
                <label for="exampleInputEmail1">商品图片：</label>
                <input type="text" class="form-control" id="img" placeholder="商品图片：">
              </div>
              <div class="form-group">
                <label for="exampleInputPassword1">名称：</label>
                <input type="text" class="form-control" id="pname" placeholder="名称">
              </div>
              <div class="form-group">
                <label for="exampleInputPassword1">价格：</label>
                <input type="text" class="form-control" id="price" placeholder="价格">
              </div>
              <div class="form-group">
                <label for="exampleInputPassword1">简介：</label>
                <input type="text" class="form-control" id="des" placeholder="简介">
              </div>
              <div class="form-group">
                <label for="exampleInputPassword1">原价：</label>
                <input type="text" class="form-control" id="oldprice" placeholder="原价">
              </div>
              <div class="form-group">
                <label for="exampleInputPassword1">库存：</label>
                <input type="text" class="form-control" id="inventory" placeholder="库存">
              </div>
              <div class="row">
                <div class="col-md-4 col-xs-4 col-sm-4 col-lg-4">
                  一级分类： <select name="" id="oneSel" class="form-control">

                  </select>
                </div>
                <div class="col-md-4 col-xs-4 col-sm-4  col-lg-4">
                  二级分类： <select name="" id="twoSel" class="form-control"></select>
                </div>
              </div>
              <div class="checkbox">
                <label>
                  <input type="checkbox"> Check me out
                </label>
              </div>
            </form>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="button" class="btn btn-primary" id="addPro">确认添加</button>
          </div>
        </div><!-- /.modal-content -->
      </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
    <!-- 模态结束------------------------------------------------ -->
    <!-- 添加和显示部分 -->
    <div class="row">
      <div class="col-md-4 col-md-offset-8">
        <button class="btn btn-success" id="addShop">添加商品</button>
      </div>
    </div>
    <!-- 搜索---------------------------------------- -->
    <form>
      <div style="margin-top: 20px;">
        <input type="text" class="form-control" id="searchName" placeholder="输入名称">
        <button class="btn btn-success" id="search">搜索</button>
      </div>
    </form>
    <!-- 搜索结束---------------------------------------- -->
    <!-- 商品列表开始 ------------------------------------------>
    <table class="table table-striped table-bordered table-hover" style="margin-top: 30px;">
      <thead>
        <tr>
          <th>图片</th>
          <th>名称</th>
          <th>价格</th>
          <th>原价</th>
          <th>库存</th>
          <th>简介</th>
          <th>状态</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody id="mybody">
        <!-- <tr>
          <td><img src="" alt=""></td>
          <td>名称</td>
          <td>价格</td>
          <td>原价</td>
          <td>库存</td>
          <td>简介</td>
          <td>状态</td>
          <td>
            <button class="btn btn-danger">删除</button>
            <button class="btn btn-danger">上架</button>
            <button class="btn btn-success">编辑</button>
            <button class="btn btn-primary">置顶</button>
          </td>
        </tr> -->
      </tbody>

    </table>

    <!-- 商品列表结束 --------------------------------------------->
  </div>

  <script src="./javascripts/jquery-3.4.1.min.js"></script>
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
    integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
    crossorigin="anonymous"></script>
  <script src="./javascripts/qian_product.js"></script>
</body>

</html>